package com.ys.service.hr.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ys.dto.AddDto;
import com.ys.entity.flow.YspModel;
import com.ys.entity.storage.TccAllocate;
import com.ys.entity.sys.YsMenu;
import com.ys.entity.sys.YsProcInst;
import com.ys.enume.flow.YsProcInstEnum;
import com.ys.mapper.hr.TwlStockBorrowDetailMapper;
import com.ys.mapper.hr.TwlStockBorrowMapper;
import com.ys.service.flow.YspTaskService;
import com.ys.service.hr.TwlStockBorrowDetailService;
import com.ys.service.hr.TwlStockBorrowService;
import com.ys.util.shiro.ShiroUtils;
import com.ys.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("twlStockBorrowDetailService")
public class TwlStockBorrowDetailServiceImpl implements TwlStockBorrowDetailService {

	@Autowired
	private TwlStockBorrowDetailMapper twlStockBorrowDetailMapper;

	//删除
	@Override
	public R del(Long id)throws Exception{
		twlStockBorrowDetailMapper.deleteTrue(id);
		return R.ok();
	}
}